Optimal event sequence sanitization