Remove createCache function