Create temporary files securely using tempfile.mkstemp().