More efficient permission checking