Changed calculation of file cache and default tile size