implementing HashPSQ to split static and dynamic.