There is a solution. First get NVidia Inspector program, go to Driver profile settings, find specific program name in profile drop down menu (e.g. Half-Life, Mirror's Edge). Then in the settings list find "Enable Application for Optimus" (under "Other" section) and choose SHIM_RENDERING_MODE_ENABLE. Apply changes, and voila.
There is another problem I am facing now - driver ignores my preferred gpu settings and uses integrated Intel card regardless of what I chose. This is awful.