Optimize Flex Application