performance optimizations (caching)