enabled caches and other optimizations