Caches work in "first in - first out" principle, any data that doesn't fit or cases cache overflow has to be written to disk before any more data could be admitted to cache otherwise would have to stay in RAM until it turn comes. Data comes in blocks 512 or 1024 bits wide and only one bit over cache capacity can cause it to stay in RAM (which is slower) and may have to wait several turns to be written to cache and than to disk.
Obviously, larger that cache is more data can wait in cache so writes to disk is more even and faster.
Another side effect is different speeds of writing small and large files. With smaller cache, large files start fast but write speed slows down after a while.
Samsung uses some RAM to supplement disk cache...