Store pools using objects instead of arrays