1. Fixed locking for cache.