Precalculating the box for the grid response