Leave whitelist as a "set"

Let whitelist be a set, it's marginally faster.