start working on history expiration for memory engine