Add a UNIQUE constraint to the `hash` column of the cache table. Fixes #2163