chore: remove temporary allocations from num_bits
#6600
+42
−21
Merged
num_bits
#6600