minor performance improvement in BlockStreamTransformer