Discard the private state of heuristics
Their state should be in the main database, which now allows plugins and ensures the state is correctly updated, and that queries stream the correct results after updates of the state (as long as it is monotonic).