I would cache util.dom0_disks() outside the for-loop.