miscutils: optimization of connect_hepnames_with_hepdata,

* Optimized execution for the metadata fixes.