Rewriting msig_get_instance_with_remote_ids() to support persistent local ids.
Use bsearch in msig_get/set_instance_data() functions.