There are products designed expressly to reduce token usage on LLM generated code. https://coralai.ai/The system evolves.