OVT-7983: Simplify loop
OVT-7983: Add bindonce to pagination