Updated secret to new secrets format