chunked writing - improves performance 100x.