Added setSecretKey API call