TOPIC: Citrix profiles

Hi guys at work we use citrix the problem we face is the size of the profiles i have discovered that a lot of that space is being taken up by the java cahe if I stop this as an admin it does not stop user's building a huge java cache so im thinking of a log in/log off script to do this. My scripting skills are non exsistent so could someone point me in the right direction or explain a way of keeping these to a minimum.