How can I fuse a lot of cubes?
If I understand right, you need joining cubes without inner vertices.

You can do it in second using Bool Tool addon:

Just select all cubes, (one of them must be active) in BoolTool menu click on "Brush" -> "Union" -> "Apply All" - done

Download Bool Tool