optimize java/cs