fix initial cache memory allocation