Use btree_key_cmp() where possible