Small performance optimizations ( cache Id and request URL was made as indexed field in DB,  logic of saving cache was optimized)