Allow setting a custom master_secret.