optimize uint256 encoding for db