A refined Cramér-type moderate deviation for sums of local statistics