Refactoring of secret data