SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'b040a72415bb60071a6dadda68901dd05da3fe6e0c566849750f8d9380a1099b' 
  AND token = 'PXDdj6B9rUfJ6f2CnVXIF1oxp/Hve4RgwW1AC8gbQ7s=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}