Okay, the problem is that $date gets overwritten by a bunch of the pals. I had to rename $date in sidebarpal.php to $iipdate so that my changes would work.
Now my times have decreased significantly as the reload isnt being done on every page load. However, there is still a large load when IIP is being used (almost twice the page generation time).
With 44 online users....
Threads/SideBar/PhotoPost
Generated in 3.235 seconds in which 3.049 seconds were spent on a total of 40 queries. Zlib compression enabled.
Threads/PhotoPost
Generated in 1.626 seconds in which 1.477 seconds were spent on a total of 31 queries. Zlib compression enabled.
Run within seconds of each other - there is still a load that doubles the time to generate the page by the SideBar/IIP code.