[TASK] Improve updates of metadata in MetaDataRepository