generate keys on application startup