Preverification API

This gets repeated in the keys view. Maybe add a `preverify_key` helper that returns it to simplify this.