SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'bd1411821ff0587182c57df49a8fa779ece44fac99c7a06df47094ecdde9f040' 
  AND token = '6BU33GM75AdC4xVrxc0cIAz8sm011MjXIZxdkSDFus4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00031

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}