SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '7f3eaf4231378df24e79889662b732739edd253d18bb29d7295d39eae4ba3968' 
  AND token = 'K5CqwUhsJlM0EXxd7n6Nyni6H/RfpOVOwepu265024I=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00053

JSON explain

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