Switch over to calloc from malloc/memset and check returns when possible