Just an idea, why don’t you write to a local file in temp and at the end copy it over?
In reply to Re: Delaying NFS writes by Generoso in thread Delaying NFS writes by ZlR