Made optimization mode persist between page refreshes. Added mode switcher to chat so it can be changed while researching.