SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '017554b1fcc65c1dcbcae0a9854247d89e9f86802d7f736b99daf6987711cbd5' 
  AND token = 'up5mDdzcjd64Yu2php9pvMYf26XcOf4f52le2+kWoY8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00016

JSON explain

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