Patch Set 3:

I'm reasonably happy with this now.  We don't always need to create the base cache.  When we do, we should be pretty good at detecting data corruption before it spreads further.

The missing part is cleaning up the delta-base-cache directory automatically, so users don't need to do housekeeping.