Optimize the size of variables.