Corn and soybean costs have affected Cal-Maine's profits in the third quarter of its financial year, the US egg processor said.