first version of cachematrix