Truncate the object id to handle LMDB size restrictions