Minor optimization when spawning objects