lib: r8xx register caching