Loop caches instance to current element instead of re-accessing inside inner loop.