LP#1652382: handle cases where supplied key is longer than 250 bytes