Improved performance by using layers for the grids