minor performance optimization when reading caches