Folder iterator performance optimization

See (this comment)[https://github.com/sookasa/box.py/commit/8f59c68e3b60d949b5eab78917d4030946df9815#commitcomment-5748894]