Reduce memory during rebuild by using iterator()

Reduce the memory used while rebuilding denorms