Well, it turns out what I did is not pre-mature optimization.