Removed cruft.
Remove config object references.
Shrink work buffer size, so that it writes in smaller chunks.