SSL Sample App

The certificate generation code in the SSL sample app runs every time the program runs. Is this required, or could the certificate be generated once and stored in NVRAM and reused for subsequent runs? Any examples on how this would be done?