Would foam do the deed...?

We heat geothermally, but apparently are losing lots of energy because we have lots of poorly insulated ducts running through unconditioned attic space. The ducts run along the floor.
Also, it appears that the ducts are poorly sealed in those runs.
It has been suggested by one insulation contractor that we have them "seal the ducts" and then "blow cellulose" into the area to insulate them.
One hitch is that we need to walk between the ducts to access a small mechanical room that houses an air handler.
It would seem that in order to allow that access, we would have to "box in" the ducts so that the cellulose would be contained.
And so this question:
Could foam be used to both insulate, and seal the ducts?
Are there reasons that foam might not be the best way to go?
Are there other options I should consider?
Sincere thanks for any thoughts on this,

If you email... Please remove the "SPAMLESS."
  Click to see the full signature.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.