Moved cache functions from grid to gridservice