Avoid writing to tmpdir