Cache the cert: supplying cert_file reads it from the file each time (unsurprisngly)