4x speedup in generating monom matrices