Cache next character queue count

Saves up to 10% by not continuously querying the object when reading the
next character