Use a set to track seen tags since they have the potential to be sparse.