VM optimizations