Basic cache controller