Remove unnecessary iterating over tasks to get db opers.
Remove unnecessary flag.
Merge pull request #785 from arjclark/optimise-db-oper-calls

optimisation: reduce calls to task proxies to retrieve db operations