Reached a high level of optimization and still under 14kb :(