s3-dbwrap: Use simpler code for logging keys