Attempting a small optimization on the idle listener.