Improvements in the caching system
Use logging instead of printing
Nicer logging when refreshing the cache