Reduce useless object allocation