caching api results