removed unnecessary minimum cache time
removed unused secret generation