Remove redundant grid cell computations.