why does RC cache to the DB and local file?