Optimizing Carbon Storage Operations for Long-Term Safety