May want to add cwsdpmi -p to your autoexec.bat; this makes CWSDPMI stay resident so MAME doesn't have to re-load it every time it executes. (Depending on how your front-end is loading MAME, it may or may not be loading CWSDPMI every time... but hey, it's worth a try.)
--Chris