Recalculate memory for memory cache, to hold all tiles.