Smartdevice: Fix cache bug that prevented recognizing different ...

...formats of the same book as being on the device. Also add an option to disable the cache.