I tested three solutions to this problem:
All the solutions had comparable performance, so I chose the one that didn't involve adding another executor.
This branch also includes a commit that adds logging to the crypto and DB executors and the DB lock to help with performance measurements. Should be useful for #545 (closed).
@grote you've seen most of this before in !485 (closed).
Closes #675 (closed)