Replace encrypt transform internals with cipher.