Optimized chain loop

Chrome fails to optimize the chain each loop.