other wise cache_fd points to var/lib/apk and contains the real installed db causing it to be loaded twice.