Optimize Node.content using switches