Bug fix: when re-opening a cached entry from disk, make sure we don't
cross the RAM cache size limit.