For tests purposes and aiming to support Hashicorp Vault, make the `SECRET_KEY` env var optional and perform local encryption only if this value is set.