ARCv2: perf: optimize given that num counters <= 32