Thoughts on optimizing gain