SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '31d3a6e3f4970a388c16a1d092cfe82835da6a09c6bf056ba421c1da13bc52cd' 
  AND token = 'YSZY3SuOMhXuN4FafxK08+ieZoEp9l/ubVX/ZO2IlOY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00014

JSON explain

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