Ensured that no 800000 elements find is executed in a loop for each element