Implement a big optimization for a certain kind of multiplication