I worked at a McDonald's in the 1980s that did that. All the heat from the ice maker and drink cooler condensors was captured in a "pre-heat" tank that fed into the water heater. The idea was that you'd need less electricity for heating water for the dishwasher.
It worked, but they removed it several years later so I guess it wasn't a net benefit.
In idle moments I've wondered if I could retrofit the multiple small compressors with a single large unit with multiplexed hoses and electronically-controlled relays that was designed to operate submerged in something like polyalkalene glycol (PAG fluid), insulate the heck out of that to minimize thermal conductivity to the surrounding air, then extract out the heat of the PAG fluid into the water heater. Would be a maintenance nightmare to be sure, but it would be a cool hack to play with exploring and measuring those boundaries of efficiency.
"But it's also two or three times as expensive as one of its chief rivals, extruded polystyrene (XPS), and its R-value per inch (R-3.4) is about 30% lower."
I'm not a huge fan of plastics or styrofoams outside of very well-contained use cases since its breakdown in the outside into extremely small pellets is already easily detectable in our seawater-based salt supplies, and unabated, I'm not sanguine about our keeping it from pervasively entering our food supply. The actual plastic itself I'm not too happy about mainly because it represents energy waste to me, and at least those types that have phytoestrogenic effects are still debatable. The doped compounds attached to those plastics however, I'm not terribly enthusiastic about that stuff leaching out into our environment and letting the sun and weather eventually breaking them down before they materially damage our bodies.
I don't know the true manufacturing costs of sheet and block form aerogel, but they're priced so high that even multi-generational payback periods didn't pencil out even close, even granting them a 30% premium. Current manufacturers simply aren't aiming those form factors at building insulation as far as I can tell, though I'd love to be shown wrong.
For the time being, when I need near-aerogel-like qualities insulation but without the volume penalty foamed glass incurs, but can't justify the cost of aerogel due to the required quantity, I look to vacuum insulated panels to cover the big expanses of area and volume, and aerogel to fill in the gaps.
This is on top of the nuttiness I accrete after observing that foamed glass insulation that can put us up to terrific equivalent R-values (R-100+ pencils out if you intend the building structure to pass through several generations), and drop climate control operational energy costs 80-90% from current typical expenses, is a dead letter in the US residential market [2].
The amount of energy developed world practices and infrastructure throw away is mind boggling, once you view everything around you in energy flow terms.
But like others are discussing in this thread, industrial and commercial energy use overshadows residential [3], over 60%. The low-hanging fruit sits there, because the ROI is typically faster or more bearable in those business-oriented contexts. I'll still pursue saving for and building a highly-insulated and -instrumented shell on my property once my house is paid off in a few years, just to scratch those nutty itches.
[1] https://www.extremetech.com/extreme/130523-zeolite-thermal-s...
[2] http://www.greenbuildingadvisor.com/blogs/dept/green-buildin...
[3] https://www.eia.gov/tools/faqs/faq.php?id=86&t=1