HM/JPM: introducing shared interface HasKeySetCache
HM/JPM: further adaptation towards shared interface HasKeySetCache
HM/JPM: fixed memory leak in KeyFilterCache, some refactorings