Replaced HeroTable by genericized CachedLookup.