Use a static encoding to save memory.