optimizing AI inference costs beyond parameter count