// Save config.xml and repo file
if (options.isEncryptionEnabled()) {
SaltedSecretKey masterKey = createMasterKeyFromPassword(masterKeyPassword); // This takes looong!
options.getConfigTO().setMasterKey(masterKey);
new MasterTO(masterKey.getSalt()).save(masterFile);
options.getRepoTO().save(repoFile, options.getCipherSpecs(), masterKey);
}
else {
options.getRepoTO().save(repoFile);
}