Make "CacheSize" value configurable.

Also make the "CacheSize" value tunable - important for larger installations.