Fix #362: Optimize failing on long lines