Optimize PS1 variable