1. A switch, comprising: one or more ports; persistent storage circuitry configured to store current database instance in a local persistent storage, wherein the current database instance includes current configuration information of the switch; and restoration circuitry configured to instantiate a restoration database instance in the persistent storage from an image of the persistent storage; retrieval circuitry configured to compute a difference of an attribute value from the current database instance and a corresponding attribute value from the restoration database instance in the persistent storage; and wherein the restoration circuitry is further configured to: apply the computed difference one or more corresponding hardware modules of the switch; and set the restoration database instance as the current database instance in the persistent storage.