we need only entitiesForMatcher
allEntites should return a set
fixed the performance test