Using a set for key usage extension

This seemed like a more intuitive approach instead of a map of booleans
(PE-4373) Convenience functions for extensions