Make some optimizations in the LA construction.