Key must use less then 767 bytes long

@karlitschek @danimo @DeepDiver1975