optimize the null cursor