Use a set for fast extension lookups