5x5x5 LED cube help

I would suggest that switching speed depends on the selected MOSFET.
Th '328P is all CMOS(FET), and it switches 40mA outputs pretty quick.
Choose one with low input capacitance.