Optimize object construction