Best practice is to not have the key generation on an online machine. Certainly not on the staking machine. Worth to reconsider in the setup