Cached loop length. Micro perf adjustment

Feel those milliseconds saved.