How about cache these sets in a field for quicker comparison? Since authority objects are immutable, you can do this without worrying about data inconsistency between the set representation and the string representation.