[aligner] Speed up the alignset reduction (closes #116942) [applied]