Code Optimisation

I don’t know if this is the correct sub-forum to put this on, but I’ll do it anyway.

Would this be a bad way to optimise my code? (for minimum file size)

import GameLogic

cont = GameLogic.getCurrentController()
own = cont.owner
c = cont.sensors

def setFade(f):
    own['fade'] = f
    
r = setFade(0)

if c["aim"].positive:
    own['Text'] = "You used the aimbot cheat!"
    r
    
if c["hurt"].positive:
    own['Text'] = "You used the 1HP cheat!"
    r
    
if c["invincible"].positive:
    own['Text'] = "You used the Invincibility cheat!"
    r
    
if c["heal"].positive:
    own['Text'] = "You used the Heal cheat!"
    r

Let’s say I have a very tight budget for file size - is this a bad way of optimising code? Is there a better way of doing it? Could optimising my code this way have other issues like for example, would it require more computing power? Is it okay to sacrifice readability for file size?

I’m pretty new to coding so any info would be helpful, but then again, it’s not really important I’m just interested.