master: Place static variables in chunks.cc in one place

Reorganize the code in chunks.cc to keep all the static variables in one
place to make it easier to wrap them in a struct.

Change-Id: I25e598792c50865fbad714b7cb5ab40e41ace32e