Remove writer state checks to reduce memory usage and improve
performance by about 5%.