`freq_counts[1:rare_threshold].sum()` is also computed on line 67, worth caching?