main: add option to disable cache code