ok so the speed had nothing to do with my db lookup. I had an obsolete data source on the xpage that no longer existed.
Removing this fixed the problem.
But I also created a scopevariable that gets set afterpage load to store the values of my dblookup. Just so if I did it continually I didn't have to go back to the server.