Restoring data for sketches