Explicitly keep temp file open