Added GroupRuleResult class to cache the results of group rule calculations.