Removing secure flags