Make the params scan more accurate

Granted this is the brute force method, but it is over a small data
set and should only be called when opening an index
change 32s fields into 40s fields for sha1