Optimize imports in BasicCache