I understand that caching can be an advantage, but JSPerf shows that caching inside the for-declaration works a little faster.