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