save and load bitmap cache