Rewrite data decryption recursively using unpack-data.
Just use stream encryption functions instead of known-size data functions.