The efficient use of stream