Output callback optimization