Optimizing your scene with static objects