remove unnecessary `secured` variable

replace its use with the `tls` variable that it was using itself