Optimize loop
Cache chunk-count