Speed up for ostream output