Cache tests using buffer+sqlite+gz files