Small fixes

I've tried to merge all my changes in a separate branch, most of them are small optimizations like trying to reduce memory pressure by reading the biggest block possibile and changing the chains of lods to increment rdi to a single load+offset.
Please check  that the offset values are all right :D