Simplify cache mechanism in Github service.