Fixed conditional encryption by recursively evaluating the options.