attempt to cache API requests