I like to use cachem package for caching, theres a cache_disk you can use if you can have a permanent path for the purpose to point to. I guess you would key on the date, check if the key is in the cache, if it is get it, if it isnt download your file, and set the key with it.