Try to be saner with iterating over large tables