[TASK] Optimized CacheManager.