There's at minimum a 10s (15s for periodicals) wait before opening a book and the hack even attempting to check what the db has to say about which book was just opened.
That's unfortunately needed, because it's roughly the time it takes on a Touch, on cold caches, for the db itself to get updated by the framework.
It's a basically a trade-off between latency and false positives, and I chose accuracy