mod_bind_session: optimize code.