Exploiting Bayesian Networks to maximize inference computations on HPC