client: use temp buffer for single output flush for json/disk util