Refactor bitmap cache and traffic overlay