optimizing where function, cache build changed for entities and groups properties ( the are id => namespace same as index )