As an alternative to my prior comment about eliminating findQualifiedIndex arguments, aggExpr could have been calculated once earlier and reused here.