Task repository uses tree for task storage for faster lookups