Fix constant loading in CacheLookupsMixin