refine socket cache