Create cache hooks