initial generation and commit of metadata cache