cache: reduce allocation of cache entries to one chunk of memory, using calloc_a