Use cache if in dev mode

cc @asmega