Allocate fewer objects

[skip ci]