This commit replaces the en/decrypted size computation with functions from the `sio` package. Fixes #5657