Fixed cache calculate and actually set the value
Fixed cache test - convert from KB to bytes