With this patch, we now only cache at most 2^14 blocks, which greatly relieves memory pressure when working with large files.