Add a locking cache for grid retrieval.