Slight performance improvement in create_permissions