Although tempting to extract heat from wastewater, you'll end up with the grease congealing on the heat exchange surfaces which if not regularly removed will decrease efficiency to very low levels. However with detergents, maybe the situation is improved but I don’t want to be the one scraping off that grease !