Updated caching for categories