Cached for loop length. Micro perf adjustment