Create cache class