Optimize a little bit Collapse and Multiplies instructions
Use bounded memory