If the payload body is larger than in-memory, nginx will start using temporary files. The buffer sizes are specified here. Need to update the get_http_body()
function here here to support it. A potentially good way might be to memory-map the file from Lua.