Add hidden option to turn off optimization when setting PermissionAttachment permissions.