Spool POST payload bigger than a threshold (default ~25MB) to a file, instead of keeping in memory the entire request. This exploits (transparently) -body_file option in the ns_http API and native curl features. Put some caching into utilities around to reduce db calls and execs.