Set lastFlush to prevent unnecessary checks