Significant speed improvements of payout calculations, cleanup execution, and pplns estimations

* All queries are performed in chuncks with configurable sleep intervals in between chunk to reduce io load