Improved parallelism

Improvements which enable EPAS to use query parallelism in more situations.