Optimized Constant Pressure Stochastic Dynamics