Optimize Nanite Materials

I got the free Sample Building from the market place:

Now one building only takes up 8ms for the Nanite Materials.
Why is that? Do I need to limit the amount of materials being used?
I need to optimize this but I don’t know where to start.

Okay so I changed Materials of the Building so it only uses 2 Materials.
Still 4ms