The quadro 4000 is a very weak CUDA card... its misleading due to naming and marketing.
i sold mine a while back and bought a GTX570 2.5GB card and see a performance increase of 2-3X
i would check out a card like a 770 or 780 perhaps... something like that and the CUDA performance will receive a huge boost