kalua: cron.taskplanner: first round of optimizations