Allow specification of cache update function key argument index