Keeping millions of files synchronized in RAM-limited environment