SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '4e788ca1ee857e82380237d181d546648780142c9058b3fefcb44fadd23fc820' 
  AND token = 'p8ItD2to6icIwcMIXVIaAVara4cTX2uNCUld1SGp5eY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00040

JSON explain

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