Cache max size is 50% of max heap size. This fixes the issue with travis running out of memory