i do not know how much influence this would have but may be try activating low fragmentation heap
additional to that you may try to avoid continously allocating and deallocating space. If you frequently require larger temporary memory blocks you may allocate a big enough block at one time and give this as working memory to your subroutines.
You also may overload new operator for some specific classes and implement own smarter memory handling.