Not that familiar with Cura but Prusa slicer has a feature called "Only print infill where needed" and that will exactly do what you describe as infill is then only printed where it is needed to hold up an overhanging roof internally, So if you find a setting like that uncheck it