Avoid excess util.X calls building lines list