code: func (c *EndpointConfig) loadOrdererPeerTLSConfig(configEntity *endpointConfigEntity) error {
  
  	//Orderers Config
  	for orderer, ordererConfig := range configEntity.Orderers {
  		//resolve paths
  		ordererConfig.TLSCACerts.Path = pathvar.Subst(ordererConfig.TLSCACerts.Path)
  		//pre load key and cert bytes
  		err := ordererConfig.TLSCACerts.LoadBytes()
  		if err != nil {
  			return errors.WithMessage(err, "failed to load orderer cert")
  		}
  		configEntity.Orderers[orderer] = ordererConfig
  	}
  
  	//Peer Config
  	for peer, peerConfig := range configEntity.Peers {
  		//resolve paths
  		peerConfig.TLSCACerts.Path = pathvar.Subst(peerConfig.TLSCACerts.Path)
  		//pre load key and cert bytes
  		err := peerConfig.TLSCACerts.LoadBytes()
  		if err != nil {
  			return errors.WithMessage(err, "failed to load peer cert")
  		}
  		configEntity.Peers[peer] = peerConfig
  	}
  
  	return nil
  }
docs: //loadTLSConfig pre-loads all TLSConfig bytes in Orderer and Peer configs