Do not open input/output pipe at each request

As discussed with @andre.anjos , this would be too inefficient.