Attempt at adding a cache to gaz lookups