Add the ability to dump the internal cache once it reaches a certain size
Add ability to disable cache flushing by setting the value to <= 0