[#1711] taskSchema back to doc so we can use .id(). The performacne hit isn't
drastic, it was the history entries that was hurting us