adds unicorn memory optimizations