move all stuff related to inventory cache into a specific bt5

SimulationTool will use optimisation only if bt5 is installed