Reducing cache size in order to minimize OOM