@jaoo 
I am a little confused here. I don't think we need to compare these 3 keys, if we don't need to do merge. If we just compare with 3 keys, host and proxy will not be updated when they are not modified.