Let $f(x) = x^3 + x + 1$. Suppose $g$ is a cubic polynomial such that $g(0) = -1$, and the roots of $g$ are the squares of the roots of $f$. Find $g(9)$.

Let's think step by step and output the final answer within \boxed{}.
user