Optimize memory usage, replace int with byte