refactor(secret): simplified code