using statCache to improve performance