Small speed optimizations (~11% faster)
More optimizations
Optimizations to map_data