Hook to generate SECRET_KEY