testing some optimizations to caching