Tons of premature optimizations for avoiding unboxing and reboxing.