Increase efficiency of redrawing the grid