Improving cache system for the primes number generator.