Stream encoding/decoding of sparse files.