Miscellaneous optimizations to status bar code