Optimizing the smartdebitIPN in the sync code