I will give you one better - encrypt the variables and move the secrets to a different server running hashicorp. Then load the secrets and keep them only in RAM.
Does Hashicorp actually employ any software engineers any more? I'm saying this having tried to deploy their product in an enterprise environment for the past couple of years. Almost nothing in their development, build, or delivery chain seems functional.