Remove the heavy hitters from the Case class, but remove the other cached usages too. Users can access heavy hitters as a one time call to heavyHitters with no caching, or request the frequencyWithHHCache if they expect to do the lookups often