Precalculate map size