At this point you should be looking at getting the system stable before throwing down hacks to get more speed.
the 040@25Mhz will give you 18.1 MIPS compared to 9 MIPS of a 40mhz 030 - however this assumes FAST ram is installed on both machines.
If you are struggling to attain 18.1 MIPS then there is either a hardware or software issue that should be inspected.

