Cache Codec
Stores one kind of stage output in a cache entry folder. write gets an empty folder; read gets a folder an earlier write filled completely, and throws an IOException when its content is not what write leaves, so StageCache can discard the entry and compute it again.