This is a slow, safe, stupid approach. Could make deep copies of the data structures as backups instead of re-loading the index from disk.