Replace for loops with memsets

It is unwise to calculate precise length and zero at max 32 indices. Just memset 32 at all times.