Allow passing an out-of-line key to the insert/update functions.