Perform a bit of low-level optimization.

Mainly reduces locking and (free list) allocation overhead.