Caching api responses