Switches to tmpfile usage