Avoid inserting a record just to immediately delete it again.