Optimized CombineCandidates.