Optimizations for tile generation