Improve performance on enforce_available_locales!

Cache the available_locales in a local Set, so we can lookup, and check for inclusions faster.
[fixes #230]