corrects the girds colections
refactors so that the missing cache is build on first search