SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '8182467e3f83d2b62416dc35e141fa491e502f519ed8e0ee49c4776cc44687c7' 
  AND token = 'NNmQvjvQ+cXKntGFr3bhV2ye496N3euvcHJBUTTTN4E=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

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