I don't believe there's anything you can do to keep ground coffee fresh for any significant period of time. Very little air is needed to oxidize coffee and after grinding beans fine the exposed surface area to oxidation reduces shelf life from just over a week after roasting to minutes. As a matter of fact I'd say the increased rate of oxidation after grinding begins to stale the coffee immediately. There is no process yet discovered to keep ground coffee as fresh as the day it was roasted/ground. Limiting oxidation only delays the inevitable but as far as I know there is no storage method/process that prevent oxidation. Freezing works o.k. with whole beans to keep roasts fresh by slowing down gas exchange processes but I don't know if it would work well with ground coffee.
Grinding fresh with fresh roasted beans seems to be the only easy way to ensure quality. Depending on how serious you want to get with good espresso, getting a very good grinder would be an investment to follow you for many years, perhaps the rest of your life.
Good espresso is, as far as I've experienced, as much a matter of bean quality as it is grind. A good espresso machine is also important but more people say that a very good grinder and a fair espresso machine will make better espresso than a very good machine and a fair grinder.
What kind of machine are you using? If it's a pump driven machine designed to extract at a pressure greater than 8-9 atmospheres, you need a very good grinder as well as fresh beans. Proper extraction happens under high pressure through a fine, even and uniform grind. Because of the high pressure the density of the packed coffee must be as even as possible to ensure the full and even extraction of espresso. The only way to ensure this uniformity is with a high quality grinder.
The Mazzer Mini is a great espresso grinder. Considering you probably will never have to buy another grinder again, it's a great investment in great espresso if you have the machine that requires a very high quality grind.
Now, if you're using a steam machine, grind is not as important since extraction pressure isn't as high so having a commercial grade grinder is excessive. Burr griders that shave the coffee are your best bet for a good, even grind. Rotational speed of the cutting burr, composition and cut of the burr, motor power...all these are factors determining the reliability, longevity and quality of grind from a grinder. An even, uniform grind benefits all brewing methods.
You can get a very good grinder to dedicate to espresso and put aside your other grinder for drip if you want. With grinders and good espresso machines you get what you pay for and good quality costs a bit more but IMHO it's worth it.