Allow the size of compressed matrices to change each iteration