Further tighten up ram restrictions with stdin/stdout to prevent running out of memory with all the buffers involved.