Moving secret token generation into pre_start_ruby hook