Replace fixed write stream chunk limit with dynamic, scaling limit