Change implementation logic of dumpSecretKey