When designing an API, is it worth validating the API key before checking the database to see whether or not the key is valid?
For instance, the key could look like this: