If I've found a working solution, then why not share it with you guys?
To be honest, I sat on my ass for a while(2 days), started the whole plugin from scratch, and finally came up with the idea of this:
Am I getting worried, that my plugin will use too much memory? With these new ideas and methods, the plugin is slightly over 60kB, but then again, check the ZombiePlague mod: more than 300k??? I have plenty of space to waste, until I reach ZP's size.( It is funny: ZP. Those are the first letters of a hungarian party place: Zöld Pardon( Green Excuse me :S ), so every time I see ZP, I can only think of that...

Plus I save memory on storing properties of items in bits and not on bytes. And thirdly, who cares? It's the 21th century, dammit...
To be compleately honest, I DO care about memory, because I am used to coding in pascal and assembly, where memory is quite limited( <1MB )