Efficient Lifting for Online Probabilistic Inference