Add disk cache.

Add simple serialized flat-file cache to store cache files.