Optimize tool for long rows in input stream.