Prevent the db to be checked more than once