I switched around the encodeStarted() to include the time waiting for the tree lock, this seems like a more fair representation of the time the server is taking to encode, since it can't encode without locking first.