Optimise - get rid of slow getNextPriesDate
Optimise: for-loop counters made local variables