Bacon class optimalization