Refactored store's record caching.