Can now handle keys that are longer than 10 chars

Keys are now allocated regardless of length. However the amount of
memory allocated to keys will not exceed KEY_MAX * (KEY_LEN + 1) which
is the max allowed under the old scheme.