What is cacheMode = 3? I'm pretty sure you can use the constant here. =)