Compile process upfront and do not rely on it in the error handler