Optimize some variables