Another approach for fixing #106 . We compute the identities roles first
and check with array_intersect if our set matches. This reduces
complexity by roughly 30-40% at 10.000 runs