Dynamically generate secret key for cookies