Terrain gen optimizations (~1.7 times faster)