Save stream contents and pipe it again later