speed-up writer conversion in headless mode

Change-Id: Ie5ccd62608c0643e3c8f019aea136ba74b282274