implemented lrucache to filter out bad reg ids