Optimize avoid large temporary.