Enhancement
An autocommit optimistic statement can retry with pessimistic mode. A lock implies contention, which can be better handled in pessimistic mode.
Removing the attempt to resolve locks in its first optimistic execution can reduce latency in high-contention scenario.