Calculate recent searches cookie