I feel like you should sum this earlier on as "total_num_retries" and if total_num_retries > 0, you throttle, else, exclude optouts.