3-digit worked fine for setting it, but looking it back up was returning me the 6-digit flavor. Since I needed to compare them to decide whether to set it or not, seemed simplest to change the values I was setting.

Not sure that this is a general issue, and with performance tuning we should be able to get to where this check isn't necessary at all.