Optimizations to BuildRegion to cut out 90% of tile-merging time