Nopain: A Method For Efficient Evaluation Of Quantum Nonlocal Operators With Applications To Solids