re-factoring cache handler dispatcher