APP-739 check for overflow when using cache