I do this. Get a kilo of good beans, freeze them in 250g batches.
250g coffee doesn't last more than a few days for me anyway, but if you were worried about it you could split down again to 125g, so you've never got more than two or three days for mould to set in.