Take into account that before_insert callbacks can change key