Intelligent JSON collection caching