[NEXUS-4766] Avoid reading old metadata multiple times

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>