Minimization of the Germano--identity error in the dynamic Smagorinsky model