Disable onFlush and postPersit events temporarily