use preprocessing matrices to calculate uncertainty on-the-fly