Stream is not threadsafe, it sets up data structures in init, and uses them in project. To be used this way it would need to either make copies through resource (preferable), or do everything it does in init in the call to project (and dynamically allocate everything, not use class scope variables).