(ITS#8117) Bugs related to key-size in lmdb and backend