I feel vexen's location is more due to the greed part more than anything. On the second trip to agrabah, the peddler basically let jafar get the lamp again for treasure. "I hope jafar shares some of his treasure with me" was basically his only thought point. Vexen would basically do anything to further his research. A glutton for knowledge