backport to 70X of the performance fix as #2347, already merged in 71X
Merge pull request #2424 from perrotta/backport2347to70X

HLTrigger/JetMET -- backport to 70X of the performance fix as #2347, already merged in 71X