Iterate over a bigger array once

...instead of iterating over two arrays.