Replace internal use of sets with arrays for auth