SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '08166beeb222a7eab1ebf4b9f78c11ac5b0fcc3ac90a73fd28d7a7955cc1400a' 
  AND token = 'ogxTsMqGHt7JJoq/budtQ/nJ2xn+xoTCV51Y8QHq8qA=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00026

JSON explain

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