Performance enhancements: don't use __iter__ unnecessarily