new iteration code based on br_use/br_done

do one iteration on all hashes, and store hashes that need a retry.
subsequent iterations are performed on this retry table.
export br_done