Optimize for dependent beans