Speed up by pre-computing qual prob