change the way the secret key is stored and accessed