The base of an isosceles triangle, with length $8$, is tangent to a circle of radius $4$. Given that the isosceles triangle has an area of $32$, find the perimeter of the triangle such that area contained in the triangle but not in the circle is maximized.