Make sure we don't cache values that were never written to the DB