Load matrix only once