Adding option to sync output stream on shuffle write