in reply to Big cache

Personally, I'm storing JSON blobs in SQLite as a crude form of persistence. As key columns I use the SHA256 of __FILE__ and some application-specific key. This automatically invalidates the cache whenever I change the code.

Another thing to potentially add transparent caching is Memoize, together with its persistence options.