Data analysis for identifying cost optimization opportunities