Move precomputeInferences inside of the synchronized section to increase
threadsafety