The details aren't completely spelled out here but SGX looks to be an interesting extension of the idea of "virtual machine per block of code"
https://software.intel.com/en-us/sgx
It appears a runtime per-site-per-use license is required though.
It appears a runtime per-site-per-use license is required though.