Fixed conditional encryption by evaluating the options.