Cutting cheese

[I got this problem many years ago, likely from Jan van de Snepscheut.]

You’re given a 3x3x3 cube of cheese and a knife. How many straight cuts with the knife do you need in order to divide the cheese up into 27 1x1x1 cubes?