[wip] Diskcache

This is a work-in-progress: mostly just opening a PR so I can keep track of files changed.