use ephemeral memory in input stream

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>