echo optimization from sp_