An application can handle sensitive data carefully in its database and still leave a copy behind during an upload. A temporary file created for compression, encryption or staging may persist longer than expected, appear in endpoint backups or be accessible to a process with broader filesystem permissions. Snowflake’s .NET Driver 6.2.0, released September 17, 2026, introduced an in-memory upload option that changes this design choice. It does not, however, make every upload disk-free automatically.
For technology leaders, the decision is not simply “memory versus disk.” It is a trade-off among confidentiality, peak memory consumption, throughput, concurrency, recovery and operational predictability. A controlled pilot should establish whether avoiding local temporary files actually reduces the risk and complexity of a particular workload.
What changed in the Snowflake .NET driver?
Snowflake’s official 2026 .NET driver release notes describe a new ExecuteDbDataReaderWithMemoryStream method on SnowflakeDbCommand that supports uploading data from an in-memory MemoryStream through PUT without first writing the source to disk. With AUTO_COMPRESS=TRUE, compression runs in memory by default. Setting SF_PUT_DISABLE_IN_MEMORY_COMPRESS=true instead permits temporary-file compression behavior.
The same release extended FILE_TRANSFER_MEMORY_THRESHOLD to the encryption buffer used during PUT. If the encrypted payload exceeds the configured threshold, the driver can spill to a temporary file. Snowflake documents a default threshold of 1 MB when unspecified and a value of -1 to keep encryption entirely in memory without that disk spill. This distinction matters: using the new method is not, by itself, proof that a workload never writes temporary files.

Treat these as documented driver capabilities, not universal promises about an application. Other code, logging, upstream libraries, OS paging, crash dumps and hosting infrastructure may still write data to persistent storage. Confirm behavior against the exact driver version deployed and its current documentation.
Why temporary disk matters
Temporary storage can be useful: it reduces memory pressure, supports large files and allows simpler retry or restart behavior. But it also expands the data-handling footprint. Sensitive exports may be duplicated on a worker filesystem, included in snapshots, left in abandoned files after a crash or retained by endpoint monitoring and backups. Container ephemeral storage is not automatically equivalent to a confidentiality guarantee.
The risk is highest when an application processes regulated records, customer-level exports, payment-adjacent data, employee information or files from multiple tenants. An architecture review should ask where plaintext and encrypted intermediate representations exist, who can access them, when they are deleted and whether their presence is necessary. A disk-free upload path can reduce one exposure surface, but it does not replace access controls, encryption in transit, data classification or retention governance.
When in-memory PUT is a good fit
The strongest candidates are bounded, moderately sized payloads generated inside an application, particularly where the data already exists in memory. Examples include a short-lived CSV generated from an approved business workflow, a small analytics extract, or a service that transforms incoming data and immediately stages it in Snowflake. In such designs, avoiding a write-read-delete cycle may simplify the data flow.
It can also be useful for containerized or serverless services with constrained writable filesystems. Yet the correct choice depends on payload size and concurrency. A 20 MB buffer may be manageable for one worker and dangerous when dozens of uploads run simultaneously, particularly if compression and encryption create additional copies.
Do not adopt an unlimited in-memory policy merely because the API supports it. Large, unbounded or unpredictable files often need streaming, concurrency limits, dedicated workers or carefully secured temporary storage. The design goal is controlled resource use, not eliminating disk at any cost.
The memory budget executives should ask for
Estimate peak memory, not only source-file size. A useful planning approximation is:
Peak upload memory ≈ source buffer + compressed/encrypted intermediate buffers + driver overhead + application baseline + safety margin.
The exact number must be measured. Compression ratios vary, and some payloads compress poorly. MemoryStream capacity can exceed its logical length. Garbage collection timing and parallel uploads can also change peak resident memory.
For illustration only, suppose a worker has 2 GB of available memory after its normal application load. If testing shows each concurrent upload adds 150 MB of peak resident memory, eight simultaneous uploads add roughly 1.2 GB before other traffic and safety margin. This is a capacity-planning example, not a benchmark or a Snowflake performance claim. The safe concurrency limit must come from load tests on representative files and the real deployment environment.
Set explicit maximum accepted file sizes, per-tenant quotas, queue limits and timeouts. Monitor process RSS or working set, managed heap allocation, garbage collection pauses, out-of-memory restarts and container memory throttling. A successful PUT is not a sufficient health metric if the worker becomes unstable during bursts.

Encryption thresholds: the subtle configuration trap
The FILE_TRANSFER_MEMORY_THRESHOLD setting deserves deliberate testing. With a finite threshold, the driver may write an encrypted intermediate payload to temporary disk once the threshold is exceeded. Setting it to -1 avoids that documented encryption spill, but can increase memory exposure to large payloads. Meanwhile, SF_PUT_DISABLE_IN_MEMORY_COMPRESS=true deliberately changes compression behavior back toward temporary files.
This means teams need two distinct policy decisions: whether temporary files are prohibited, and how much memory the service may use. If the first is absolute, enforce strict payload and concurrency limits and test the full execution path. If the second is the stronger constraint, an encrypted temporary-file design with hardened filesystem permissions and deletion controls may be preferable.
Never assume the term “encrypted spill” makes a temporary file risk-free. Review keys, permissions, storage encryption, lifecycle, backups and incident access. Likewise, an in-memory object is not automatically immune to memory dumps or privileged process access.

Reference architecture for a controlled upload
A practical flow begins with an authenticated API or scheduled job. The application validates source identity, file type, size and tenant ownership before allocating substantial memory. A bounded transformation stage produces a MemoryStream. A dedicated upload worker executes Snowflake PUT with an appropriately scoped identity and stage permissions. A separate validation step confirms the intended staged object and, if required, a subsequent COPY INTO or other load outcome.
Separate three states in the job record: accepted, uploaded to stage and loaded into target table. Record a stable job ID, checksum or content fingerprint, stage destination, timestamps and terminal status. This prevents a network retry from being mistaken for a new business transaction. A failed response does not always prove the remote side did nothing, so inspect destination state before retrying blindly.
Actiknow’s custom solutions and integration services address the broader application-to-data-platform architecture in which this upload decision belongs. The driver setting is one component of a reliable ingestion workflow, not a substitute for workflow design.
Security controls that still matter
Use least-privilege Snowflake roles and narrowly scoped stages. Protect credentials using managed secrets or supported workload identity rather than embedding keys in application code. Enforce TLS, redact sensitive values from application logs and avoid logging complete PUT commands if they expose internal paths or data-bearing identifiers.
Define retention and cleanup for staged files, not just local buffers. Restrict who can list or read stage contents. If data crosses tenant boundaries, isolate permissions and naming conventions appropriately, and test for cross-tenant access. Make sure exception handling does not serialize payloads into diagnostic traces. Review crash-dump, swap and observability policies for the worker host.
An upload that avoids local disk can still leave data in a Snowflake stage indefinitely if no lifecycle policy exists. End-to-end governance must follow the information through its final disposition.
Performance and cost: measure rather than assume
Memory-based uploads can eliminate local filesystem operations, but network transfer, compression, encryption and Snowflake-side processing still dominate many workloads. The driver option is not a guaranteed throughput improvement. For compressible files, CPU cost may matter more than disk I/O; for many small files, per-request overhead may dominate. For large files, buffering may increase memory pressure enough to reduce throughput.
Benchmark four representative profiles: small and frequent, medium and bursty, large and infrequent, and poorly compressible. Compare elapsed upload time, throughput, peak memory, CPU, garbage collection, failure rate and local disk writes. Repeat at expected concurrency and at a realistic peak. Record Snowflake-side stage or load outcomes separately from driver upload completion.
Calculate total operating cost from compute sizing, worker concurrency, retries, storage lifecycle and support effort. A lower local-disk footprint may justify a slightly larger worker in a sensitive workflow, but that trade-off should be explicit.
Failure recovery and idempotency
Consider a process crash after bytes have reached the stage but before the application records success. A naive retry may create another staged object or trigger duplicate downstream loads. Design deterministic destination naming or a job registry, validate checksums where supported, and reconcile ambiguous outcomes. If COPY INTO follows PUT, use Snowflake’s documented load behavior and file metadata to determine safe reprocessing rather than assuming every retry is harmless.
Handle cancellation, network timeouts, expired credentials and worker restarts. Use bounded exponential backoff with jitter for transient errors, but classify permanent validation and authorization failures separately. Preserve enough metadata for recovery without retaining the sensitive payload unnecessarily.

A four-week pilot
Week 1
inventory upload sources, file-size distribution, sensitivity classification, existing temporary-file behavior and downstream stage retention. Define a no-disk requirement only where justified. Confirm the installed driver and exact method signature from the versioned documentation.
Week 2
build an isolated implementation with the new memory-stream upload path. Test AUTO_COMPRESS behavior, FILE_TRANSFER_MEMORY_THRESHOLD values and the compression override. Instrument memory, filesystem writes, stage objects and error handling.
Week 3
run realistic concurrency and failure tests. Include incompressible payloads, maximum-size inputs, network interruption, cancellation, restart and ambiguous completion. Validate tenant separation, role permissions and redaction. Compare against a secured temporary-file baseline.
Week 4
document the operating envelope and rollout decision. Establish maximum file size, concurrency, queue depth, memory alarms, retry policy, stage retention and rollback path. Start with a narrow traffic cohort and expand only when acceptance criteria hold.

Executive acceptance checklist
Before approving production, require evidence that the chosen path meets its stated disk-write policy; memory stays below a defined limit at peak load; sensitive data is absent from logs and unintended local artifacts; stage permissions and retention are verified; retries do not create duplicate business loads; and operators can distinguish upload success from final data availability. Assign owners for each control.
When not to use in-memory uploads
Avoid making it the default for unbounded uploads, very large files, low-memory workers or workloads with high unpredictable concurrency unless testing supports the design. If an existing pipeline already uses hardened ephemeral storage with reliable cleanup and excellent operational behavior, the incremental benefit may be small. The best architecture is the one with a measurable security and reliability advantage under real conditions.
Frequently asked questions
1. What is Snowflake .NET in-memory PUT?
It is a driver capability introduced in version 6.2.0 that lets a .NET application upload from a MemoryStream using ExecuteDbDataReaderWithMemoryStream rather than first writing the source to a local file.
2. Does using the new method guarantee zero disk writes?
No. Encryption can spill to disk above FILE_TRANSFER_MEMORY_THRESHOLD, compression can be configured to use temporary files, and unrelated application or operating-system components may write data.
3. What does FILE_TRANSFER_MEMORY_THRESHOLD=-1 do?
According to Snowflake’s release notes, it keeps PUT encryption entirely in memory rather than spilling that encrypted payload to a temporary file. It does not remove the need for memory limits.
4. What happens with AUTO_COMPRESS=TRUE?
In driver 6.2.0, compression is performed in memory by default for the new upload path. SF_PUT_DISABLE_IN_MEMORY_COMPRESS=true opts into temporary-file compression behavior.
5. Is in-memory PUT more secure?
It can reduce local temporary-file exposure, but overall security still depends on permissions, logging, secrets, stage retention, host configuration and incident controls.
6. Is it faster than disk-based PUT?
Not necessarily. Measure end-to-end performance with representative file sizes, compression characteristics and concurrent uploads.
7. Can serverless or container workloads use it?
Potentially, provided the runtime supports the driver and the memory and execution-time limits fit the workload. Test cold starts, concurrency and termination behavior.
8. How should large uploads be handled?
Use explicit size limits, queueing, controlled concurrency and a benchmarked alternative when the memory cost is excessive. A secure temporary-file path may be the better trade-off.
9. Does PUT mean the data is already available in a target table?
No. PUT stages files. A subsequent load or transformation may be needed, and its completion should be monitored independently.
10. What is the first step before migrating an existing uploader?
Capture current file-size distributions, local artifact behavior, error rates and peak memory. Without a baseline, teams cannot demonstrate that the change improved the system.
Conclusion
Snowflake’s in-memory PUT capability gives .NET teams a valuable option for reducing temporary-file handling, especially when a sensitive payload is already in memory. The meaningful engineering question is whether the application can maintain a bounded, observable and recoverable upload path at production concurrency. Test compression, encryption spill thresholds, downstream load semantics and failure recovery together. Removing a file write is useful only when the complete workflow becomes safer and more reliable.
If your application needs a governed Snowflake ingestion path, Actiknow’s custom web application development services can help frame the integration, validation and operational requirements. Discuss your application and data-flow requirements with the Actiknow team.
Technical reference: Snowflake .NET Driver 2026 release notes, version 6.2.0 (September 17, 2026): https://docs.snowflake.com/en/release-notes/clients-drivers/dotnet-2026

