Slightly adapt signature validation to spare a few repeated database
requests