set max cache size on launch