CacheServiceTest: clearMem based on free memory

To attempt to limit the number of iterations (and thus memory
allocations) by the clearMem method, update to create a byte[] instead
of String[], of size Runtime.freeMemory() / 2.

This should relieve any memory limitations of running this test.