Use losetup more efficiently.