1. A method for optimizing virtual machines (VMs), comprising: computing a delta between a pre-execution state of a target VM and a post-execution state of the target VM to determine changes made to the target VM during at least one of pre-execution compliance-based adaptation and execution; and in response to a change being desirable for permanent use, suggesting and/or deriving a variant of the target VM that permanently includes the desired change.