Use Iterator for performance and readability improvement
Fix #1110 "FB: Insert of annotated data takes 30s with 844-control form"

Introduced since 4.2 by 6fd0ac352982a8e499590ccd66a80964f8110301 and 9f14be60576ffb1d76df88baf98b9a9c95281b29