A targeted database performance fix.
Replaced a per-row database trigger with a per-statement one, removing a significant write overhead.