Replaced old encrypt handler with the new one.