LLM Memory Optimization