Performance optimizations for reader thread