At present either a password must be typed in or an unencrypted file must be present to encrypt a realm.
If the password could be specified with an environment variable the command requirements could be cut by 50% and concerns over master file storage security would be removed.