Cached the limit in some loop.