Encapsulating new/call behavior of ToTempFile