Optimal AI Companion Memory