Speed up getting unused unions