Added caching for grid snapping
Better caching