Firstly, the Xperia Z has a lithium polymer battery in it. It should not be charged overnight! Charge it until it says it is full then unplug.
It is also a "memory free" battery, meaning that fully discharging and recharging makes no difference.
I suggest you look at the programs/apps you have...