refactor cache management for crud utils