Add localStorage caching of API requests