Use vault-cipher's portable concatBuffer() function to remove some inlined implementations of the same in Vault proper.
Check that encrypted files are big enough before slicing them up.