More optimizations

The ID thing is small compared to the resource thing, but still notable. ToString is tiny, but I just didn't like that it was happening every frame :)