Reduce stack and heap element sizes