use local caches, avoid lookup, inline trivial comparison
Merge pull request #1256 from VinInn/Match5x5

Reco improvements -- Infinite speedup of Multi5x5BremRecoveryClusterAlgo