Optimize Group#match