Refactor local binary cache code into a subclass

Created by  Eelco Dolstra  on February 18, 2016
N2NKSKHSFR6SDMGZO2ALNDVIOLOEE26BPQHCSWUGEFE3DVVVV4MAC
Change contents