Performance improvement on response line iteration