Added caching of VM