Improve speed of grid generation: I've found something simple I can