SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '5b7eb3e2412cf58cde7eb69c781759df1f43beb8553cf03b9e29f87bac478a43' 
  AND token = 'OjEFVGyn5NKa/2oBxPhZsb0yfaTi8OhMDI0k3AXVfzc=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00050

JSON explain

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