Added caching of index and party id. Some other performance tweaks. Added icon to email button. [ci skip]