- initialize `last_key_val` to first value in `key` to avoid compiler warnings.