streaming class performance optimizations