Both metals have been outperforming the S&P 500 over the past year.