Use buffered IO streams for increased performance