Added secret key generation after deployment