A Trajectory Inference-based Technique for Energy Efficient Store-and-Forward Technology