Added in-memory persistence for programs