Some optimizations with the final keyword