Iterate over ACLs in the most efficient order