Optimizations: speeding up object creation