SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'a986108b06d9b54fd1249981d7946fd0a3707579a275d26d2edcd3c134f46c89' 
  AND token = 'pK9afNnLrmWdbVN8noX99ToaX1VeU+9//2M/OgqcYXM=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00028

JSON explain

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