Learning to Reduce: Towards Improving Performance of Large Language Models on Structured Data