In the previous version, the maxLength would use 'a' as the length for the varchar slot, which can produce an key buffer that is not long enough for all possible keys.