Return unique_ptr from openStream