optimize relooper id counters