Add compat mode for old (32bit FileSize) CacheDB (LP: #1274466)