Avoid creating unnecessary temp files