Reduce the database contention by not holding the lock when we're doing
the back-end fetch.