The caching of the driver version should be moved into get_driver_version() so these two lines can be removed.