Currently reads function output into memory before sending response, should stream directly from the process stdout to response