cache the grid