Give your cloud AI app an offline mode.
Recent revisions are kept. Restoring one creates a new revision.