Improve speed of transforming observations to fact tables.