SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '585ff8d2628fadec91535c0cca84ea497167b474a22a9f56e3285a53f7a0e764' 
  AND token = 'oA9NddFJOLbA5Q/ggSTKyh5dUFnvo/q4jCInysIkpNE=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00058

JSON explain

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